﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using SecurityApi.DataAccess;
using Telerik.Windows.Controls;

namespace SecurityAdmin.WPF
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Window_Loaded_1(object sender, RoutedEventArgs e)
        {
            //using (ResourceRepository repository = new ResourceRepository())
            //{
            //    List <SecurityApi.DataAccess.Resource> list = repository.GetResources(1).ToList();
            //    foreach (var r in list)
            //    {
            //        lbResources.Items.Add(r);
            //    }
            //}

            //using (ClaimTypeRepository repository = new ClaimTypeRepository())
            //{
            //    List<SecurityApi.DataAccess.ClaimType> list = repository.GetClaimTypes(1).ToList();
            //    foreach (var r in list)
            //    {
            //        lbClaimTypes.Items.Add(r);
            //    }
            //}
        }

        private void RadRibbonButton_Click(object sender, RoutedEventArgs e)
        {
            RadRibbonButton button = sender as RadRibbonButton;
            RadWindow.Alert(button.Content.ToString());
        }

    }
}
